public class administrator extends staff{
	private String work;
	private int yearsalary;
	public void setWork(String work1){
		work=work1;
	}
	public String getWork(){
		return work;
	}
	public void setYearSalary(int salary1){
		yearsalary=salary1;
	}
	public int getYearSalary(){
		return yearsalary;
	}
	public String toString1(){
	    return "职务："+work+"年薪： "+yearsalary;
	}
	public administrator(String name, int age, String sex) {
		super(name, age, sex);
	    this.setWork(work);
	    this.setYearSalary(yearsalary);		
		// TODO Auto-generated constructor stub
	}
	public administrator() {
		// TODO Auto-generated constructor stub
	}
}

